package cn.pubinfo.service.impl;

import cn.pubinfo.dao.RoleMapper;
import cn.pubinfo.model.Role;
import cn.pubinfo.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by zck on 2017/8/22.
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleMapper roleMapper;

    @Override
    public int add(Role role) {
        return roleMapper.insertSelective(role);
    }
}
